﻿using System.Windows.Controls;
using YLPublicService.TransferModel;
using System.Windows.Navigation;

using YLServerInterface.Forms;
namespace YLServerInterface.UserControls
{
    /// <summary>
    /// Interaction logic for Item.xaml
    /// </summary>
    public partial class Item : UserControl
    {
        private Item()
        {
            InitializeComponent();
        }
        public Item(WorkItem2ServerUser item)
            : this()
        {
            this.item = item;
            lblID.Content = item.WorkItemID;
            lblTime.Content = item.DBTime.ToShortDateString();
            lblDiscription.Content = item.GetDiscription();
        }
        WorkItem2ServerUser item;
        private void btnMakeWorkItem_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            frmWorkItemProcess frm = new frmWorkItemProcess(item);
            frm.ShowDialog();
        }
    }
}
